import { forwardRef, Module } from '@nestjs/common';
import { FeedbackService } from './feedback.service';
import { FeedbackController } from './feedback.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserModule } from '../user/user.module';
import { jwtConstants, signOptions } from 'src/common/auth/constants';
import { JwtModule } from '@nestjs/jwt';
import { FeedbackEntity } from 'src/modules/admin/feedback/entities/feedback.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([FeedbackEntity]),
    forwardRef(() => UserModule),
    JwtModule.register({
      secret: jwtConstants.secret,
      signOptions,
    }),
  ],
  controllers: [FeedbackController],
  providers: [FeedbackService]
})
export class FeedbackModule { }
